<extend name="Public:innerbase" />
<block name="css"></block>
<block name="js">
<script type="text/javascript">
function showIntroDetail(id){
	art.dialog.open('{:U('Reservation/reservation_uinfo',array('token'=>$token))}&id='+id,{lock:false,title:'预约订单详情',width:700,height:420,yesText:'关闭',background: '#000',opacity: 0.87});
}
</script>
</block>
<block name="content">
<div class="container-fluid">
	<div class="page-header">
		<h4>预约订单管理</h4>
	</div>
	<div class="alert alert-info">
		<p>（ 本次收集订单总数：<span class="redamount">{$count}</span>个　　预订成功：<span class="redamount">{$ok_count}</span>个　　预订失败：<span class="redamount">{$lose_count}</span>个　　等待客服回电订单：<span class="redamount">{$call_count}</span>个） </p>
	</div>
	<table class="table wm-table-bordered">
		<thead>
			<tr>
			<th>序号</th>
			<th>真实姓名</th>
			<th>电话</th>
			<th>预约项目</th>
			<th>预定日期</th>
			<th>订单状态</th>
			<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<if condition="$books eq ''">
			<tr><td colspan="7" style="text-align:center;">暂时还没有订单</td></tr>
		<else/>
		<volist name="books" id="o">
			<tr>
				<td>{$o.id}</td>
				<td>{$o.truename}</td>
				<td>{$o.tel}</td>
				<td>{$o.housetype}</td>
				<td>{$o.dateline}/{$o.timepart}</td>
				<td><if condition="$o.remate eq 0">待回复<elseif condition="$o.remate eq 1"/>确认<elseif condition="$o.remate eq 2"/>拒绝</if></td>
				<td class="norightborder"><a href="###" onclick="showIntroDetail({$o.id})">详细</a>  <a class="btn" href="javascript:drop_confirm('您确定要删除吗?', '{:U('Reservation/manage_del',array('token'=>$o['token'],'id'=>$o['id']))}');"  title="删除">删除</a></td>
			</tr>
		</volist>
		</if>
		</tbody>
	</table>
	<div class="pages">{$page}</div>
</div>
</block>